package org.example.boot001;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @SpringBootApplication
 * 等同于
 * @SpringBootConfiguration
 * @EnableAutoConfiguration
 * @ComponentScan("com.atguigu.boot")
 * @Import({User.class, DBHelper.class}) 给容器中自动创建出这两个类型的组件、默认组件的名字就是全类名
 * @ConditionalOnBean(name = "tom")
 * @ConditionalOnMissingBean(name = "tom")
 * @ImportResource("classpath:beans.xml") 原生配置文件引入
 * @SpringBootApplication默认扫描当前包，及其子包
 */

@SpringBootApplication(scanBasePackages = {"org.example"})
public class Boot001Application {

    public static void main(String[] args) {
        SpringApplication.run(Boot001Application.class, args);
    }

}
